package ManyAnimal;

public class Duck extends Animal implements Irunning,Iswimming,Ifly{

    public Duck(String name) {
        super(name);
    }

    @Override
    public void fly() {
        System.out.println(this.name + "正在飞");
    }

    @Override
    public void run() {

        System.out.println(this.name + "正在奔跑");
    }

    @Override
    public void swimming() {

        System.out.println(this.name + "正在游泳");
    }
}
